@extends('layout.default')

@section('main')
    <style>
        .mine input {
            width: 340px;
            border-radius: 5px;
            border: 1px solid #000000;
            height: 33px;
        }

        font {
            padding-left: 30px;
        }

    </style>
    <?php
    if (Session::get('error')) {
        echo Session::get('error');
    }
    ?>
    <div class="col-sm-12" style="padding: 50px;padding-left: 25%;padding-top: 5%">
        {{Form::open(array('url'=>'user/register','method'=>'post'))}}
        <div class="mine">

            {{ Form::label('name', 'name') }}<br>
            {{ Form::text('name','',array('required'=>'required')) }}<font
                    color="red"><?php echo Session::get('nameError')?></font><br>
            <br><br>
            {{ Form::label('password') }}<br>
            {{ Form::password('password',array('required' => 'required')) }}<br>
            <br><br>
            {{ Form::label('Repeat password') }}<br>
            {{ Form::password('password2',array('required' => 'required')) }}<font
                    color="red"><?php echo Session::get('passError')?></font><br>
            <br><br>

            {{ Form::label('email', 'Email') }}<br>
            {{ Form::email('email',' ',array('required'=>'required')) }}<font
                    color="red"><?php echo Session::get('emailError')?></font>
            <br><br><br>
        </div>
        {{ Form::submit('Register', array('class' => 'btn btn-sm btn-success')) }}<br>
        <br>
        {{ Form::close() }}<br>
    </div>

@stop